package com.ruoyi.project.module.remember.service;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.module.remember.mapper.RememberMapper;
import com.ruoyi.project.module.remember.domain.Remember;
import com.ruoyi.project.module.remember.service.IRememberService;
import com.ruoyi.common.support.Convert;

/**
 * 会员 服务层实现
 * 
 * @author frey
 * @date 2018-11-13
 */
@Service
public class RememberServiceImpl implements IRememberService 
{
	@Autowired
	private RememberMapper rememberMapper;

	/**
     * 查询会员信息
     * 
     * @param id 会员ID
     * @return 会员信息
     */
    @Override
	public Remember selectRememberById(Integer id)
	{
	    return rememberMapper.selectRememberById(id);
	}
	
	/**
     * 查询会员列表
     * 
     * @param remember 会员信息
     * @return 会员集合
     */
	@Override
	public List<Remember> selectRememberList(Remember remember)
	{
	    return rememberMapper.selectRememberList(remember);
	}
	
    /**
     * 新增会员
     * 
     * @param remember 会员信息
     * @return 结果
     */
	@Override
	public int insertRemember(Remember remember)
	{
	    return rememberMapper.insertRemember(remember);
	}
	
	/**
     * 修改会员
     * 
     * @param remember 会员信息
     * @return 结果
     */
	@Override
	public int updateRemember(Remember remember)
	{
	    return rememberMapper.updateRemember(remember);
	}

	/**
     * 删除会员对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	@Override
	public int deleteRememberByIds(String ids)
	{
		return rememberMapper.deleteRememberByIds(Convert.toStrArray(ids));
	}
	
}
